<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white" >
      <van-swipe-item v-for="item in swiperList" :key="item.id">
        <img :src="item.imgUrl">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: "swiper",
  props:['swiperList']
}
</script>

<style scoped>
  .my-swipe {
    height: 2rem;
    width: 100%;
  }
  .my-swipe img{
    width: 100%;
    height: 100%;
  }
</style>
